package com.wstx.mediaserver.config;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class MyConfig {
    public static Properties properties = new Properties();
    public static InputStream resource = MyConfig.class.getResourceAsStream("/config.properties");
    static {
        try {
            properties.load(resource);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    public static String getConfig(String props) {
        return properties.getProperty(props);
    }

    public static void main(String[] args) {
        System.out.println(getConfig("upload.proxy.port"));
    }
}